/**
 * 
 */
package com.ez.supervise.core;

/**
 * @author searph.wang
 * @email searph.wang@gmail.com
 * @Created at 2009-7-27
 * 
 */
public class Result {
    private Long id;
    private boolean success = true;
    private Object entity;
    private String message;

    public Result() {
    }
    public Result(Object entity, boolean success) {
	this.entity = entity;
	this.success = success;
    }
    
    public Result( boolean success, String message) {
	this.message = message;
	this.success = success;
    }

    public Result(Object entity) {
	this.entity = entity;
    }
    public Result(Long id) {
	this.id = id;
    }
    public void setSuccess(boolean success) {
	this.success = success;
    }

    public boolean isSuccess() {
	return success;
    }

    public void setEntity(Object entity) {
	this.entity = entity;
    }

    public Object getEntity() {
	return entity;
    }

    public void setId(Long id) {
	this.id = id;
    }

    public Long getId() {
	return id;
    }

    public void setMessage(String message) {
	this.message = message;
    }

    public String getMessage() {
	return message;
    }
}
